
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">

<head>
    <title><?php print $head_title ?></title>
    <?php print $head ?>
    <?php print $styles ?>
    <?php print $scripts ?> 
</head>

<body<?php print phptemplate_body_class($left, $right); ?>>

	<div id="WrapOuter">
		<div id="WrapInner">
		
			<div id="PageContainer">
				<div id="Page">

					<div id="TopBar">	
							
						<?php phptemplate_user_id_bar() ?>
						
						<div id="SearchBox">
							<?php print $searchbox ?>
						</div><!-- /SearchBox -->
						
						<div id="NN">
							<?php print phptemplate_nodenav() ?>
						</div><!-- /NN -->
						
						<div id="NL">
							<?php print phptemplate_nodelist() ?>
						</div><!-- /NN -->
						
					</div><!-- /TopBar -->
					
					<div id="MastHead">
						<div id="Logo"><a href="<?php print $base_path ?>" title="Return to the Homepage"><?php print $site_name; ?></a></div>									
					</div><!-- /MastHead -->
					
					<div id="MainNav">
						<?php print $mainnav ?>
					</div><!-- /MainNav -->
											
					<div id="SubNav">
						<?php print $subnav ?>
					</div><!-- /SubNav -->

					<div id="PageBody">
									
						<div id="Column1">
							<?php print $left ?>
						</div><!-- /Column1 -->
						
						<div id="Column2" class="node<?php print $node->nid ?>">
							<?php print $precontent ?>
							<span class="clear"></span>
							<?php if ($help): print $help; endif; ?>
							<span class="clear"></span>
							<?php if ($messages): print $messages; endif; ?>
							<span class="clear"></span>
          					<?php if ($breadcrumb): print $breadcrumb; endif; ?>
							<span class="clear"></span>
							<?php if ($tabs): print '<div id="TabsContainer">'; endif; ?>
							<?php if ($tabs): print '<div id="TabsWrapper" class="clear-block">'; endif; ?>
							<?php if ($title): print '<h1'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h1>'; endif; ?>
							<?php if ($tabs): print '<ul>'. $tabs .'</ul></div>'; endif; ?>
							<span class="clear"></span>						
							<?php if($tabs2) { ?><div class="tabs2"><ul><?php print $tabs2 ?></ul></div><?php } ?>
							<?php if ($tabs): print '</div><!-- /TabsContainer -->'; endif; ?>
							<span class="clear"></span>						
							<?php print $content ?>
							<span class="clear"></span>
							<?php print $subcontent ?>
							<span class="clear"></span>
						</div><!-- /Column2 -->
						
						<div id="Column3">
							<?php print $right ?>
						</div><!-- /Column3 -->
					
					</div><!-- /PageBody -->
					
					<div id="Footer">Copyright &copy; <?php echo date("Y"); ?>. All Rights Reserved.</div><!-- /Footer -->
			
				</div><!-- /Page -->
			</div><!-- /PageContainer -->	
			
		</div><!-- /WrapInner -->
	</div><!-- /WrapOuter -->
	
<?php print $closure ?>
</body>
</html>